$OpenBSD: patch-port_cpl_port_h,v 1.1 2017/05/19 09:19:48 landry Exp $

Fix isnan() not being defined

Index: port/cpl_port.h
--- port/cpl_port.h.orig
+++ port/cpl_port.h
@@ -672,7 +672,7 @@ static inline int CPLIsFinite(double f) { return std::
 #  define CPLIsFinite(x) __builtin_isfinite(x)
 #else
 /** Return whether a floating-pointer number is NaN */
-#if defined(__cplusplus) && defined(__GNUC__) && defined(__linux) && !defined(__ANDROID__)
+#if defined(__cplusplus) && defined(__GNUC__) && defined(__OpenBSD__) && !defined(__ANDROID__)
 /* so to not get warning about conversion from double to float with */
 /* gcc -Wfloat-conversion when using isnan()/isinf() macros */
 extern "C++" {
